//
//  CourseVideoViewMenuFull.h
//  xpkc
//
//  Created by TopSage on 15/10/23.
//  Copyright (c) 2015年 TopSage. All rights reserved.
//

#import <UIKit/UIKit.h>
#import "UIView+Frame.h"

typedef enum {
    PlayerRateSlow = 1,
    PlayerRateNormal,
    PlayerRateFast
}PlayerRate;

@protocol MenuFullDelegate <NSObject>

- (void)rateBtnClick:(UIButton *)btn;
- (void)qualityBtnClick:(UIButton *)btn;
- (void)chapterSelectedAtIndex:(NSIndexPath *)indexpath;

@end

@protocol MenuFullHalfscreenDelegate <NSObject>

- (void)halfScreenPlayer;

@end

@interface CourseVideoViewMenuFull : UIView<UITableViewDataSource,UITableViewDelegate>

//@property (nonatomic,strong) UILabel * playNoteLabel;

@property (nonatomic, strong)UIView *topView;
@property (nonatomic, strong)UIView *bottomView;
@property (nonatomic, strong)UIButton *backBtn;
@property (nonatomic, strong)UILabel *titleLabel;
@property (nonatomic, strong)UIButton *questBtn;
@property (nonatomic, strong)UIButton *qualityBtn;
@property (nonatomic, strong)UIButton *previBtn;
@property (nonatomic, strong)UIButton *playBtn;
@property (nonatomic, strong)UIButton *nextBtn;
@property (nonatomic, strong)UILabel *timeLabel;
@property (nonatomic, strong)UISlider *progressView;
@property (nonatomic, strong)UIButton *favBtn;
@property (nonatomic, strong)UIButton *rateBtn;
@property (nonatomic, strong)UIButton *chaptersBtn;//章节列表
@property (nonatomic, strong)UIButton *halfBtn;

@property (nonatomic, strong)UIView *quelityView;//画质
@property (nonatomic, strong)UIView *chaptersView;//列表视图
@property (nonatomic, strong)UIView *rateView;//倍率视图
@property (nonatomic, assign)BOOL isClose;//菜单
@property (nonatomic, assign)BOOL isChapterClose;//选集

@property (nonatomic, assign)PlayerRate currentRate;//当前速率
@property (nonatomic, assign)NSIndexPath *currentIndexPath;//当前讲数
@property (nonatomic, assign)NSInteger currentQuality;//当前画质

@property (nonatomic, strong)NSArray *chapters;//章节
@property (nonatomic, strong)NSArray *qualities;//画质

@property (nonatomic, assign)id<MenuFullDelegate> delegate;
@property (nonatomic,assign) id<MenuFullHalfscreenDelegate> halfDelegate;


@property (nonatomic,strong) UILabel * qualitiesNoteLabel;

/**
 *  上下滑调节声音，左右滑调节进度
 */
@property (nonatomic,strong)UIImageView *volume;
@property (nonatomic,strong)UIImageView *schedule;
@property (nonatomic,strong)UISlider *volumeSlider;
@property (nonatomic,strong)UIButton *volumeBtn;

@property (nonatomic,strong)UIView *gestureView;

@property (nonatomic,strong) UIView * volumeView;

@property (nonatomic,copy) void (^myblock)(NSDictionary * playUrls);

- (void)closeMenu;
- (void)openMenu;
- (void)openChapter;
- (void)closeChapter;
- (void)openRate;
- (void)closeRate;
- (void)openQuality;
- (void)closeQuality;
@end
